<?php
namespace falcon5\inc\Api\Callbacks;

use falcon5\inc\Base\Common;
use falcon5\inc\Http\Controllers\PageController;
use falcon5\inc\Http\Views\HttpView;
use lucatume\DI52\ContainerException;

/**
 * Class AdminCallbacks
 * @package falcon5\inc\Api\Callbacks
 * @desc
 */
class AdminCallbacks extends Common
{
    /**
     * @desc
     * @var PageController
     */
    private $page;


    /**
     * @throws ContainerException
     */
    public function __construct()
    {
        parent::__construct();
        $this->page = falcon5_app(PageController::class);
    }

    /**
     * @return void
     * @throws ContainerException|\hollisho\helpers\InvalidArgumentException
     * @desc Settings Page
     */
    public function settings()
    {
        $this->page->settings(new HttpView('settings'));
    }


}